﻿namespace Zy.User.Services.EventSubscriber
{
    public class SubscriberService:ICapSubscribe
    {
        [CapSubscribe(nameof(TestEvent))]
        public async  Task TestReceivedMessage(TestEvent t, CancellationToken cancellationToken)
        {
            Console.WriteLine("Service:" + t.Data);
        }
    }
}
